package myapps.ttclient.model;

import myapps.ttclient.struct.SlideDataStruct;

public class PPTSlideShowModel {

	private SlideDataStruct[] m_slideData = null;

	public SlideDataStruct[] get_SlideData() {
		return m_slideData;
	}

	public void set_SlideData(SlideDataStruct[] mSlideData) {
		m_slideData = mSlideData;
	}

	public int get_SlideCount() {
		return m_slideData.length;
	}

	public String[] get_Titles()
	{
		if(m_slideData != null)
		{
			int slideCount = m_slideData.length;

			if(slideCount > 0)
			{
				String[] titles = new String[slideCount];

				for (int i = 1; i <= slideCount; i++) {
					titles[i-1] = ((Integer) i).toString() + ".  " +
					m_slideData[i-1].slideTitle ;
				}

				return titles;
			}
		}

		return null;
	}

}
